<?php 
/** Load header
*/
$this->load->view('header', $template) ;
?>
<link href='http://fonts.googleapis.com/css?family=Allura' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="<?php echo base_url() ?>assets/css/formpage.css">
<!-- ---------------------------------------------------------- -->
	
<section class="title">
	<div class="wrapper">
		<h2 class='title'>
			Chỉnh sửa thông tin cá nhân >_
		</h2>
	</div>
</section>

<section>
	<div class="wrapper form-visible">
		
		<form action="<?php echo base_url(); ?>user/update_profile" method="post" accept-charset="utf-8">
			<p>
				<label>Tên đầy đủ</label>
				<input type="text" name="fullname" 
				value="<?php echo $profile['fullname']?>" placeholder="Họ và tên">
			</p>
			<p>
				<label>Giới tính</label>
				<span class="group">
					<label>Nam</label>
					<input type="radio" name="gender" value="Nam" <?php if($profile['gender'] == "Nam") {?> checked = "checked" <?php } ?> >
						&nbsp;&nbsp;
					<label>Nữ</label>
					<input type="radio" name="gender" value="Nữ" <?php if($profile['gender'] == "Nữ") { ?> checked = "checked" <?php } ?> > 
				</span>
			</p>
			<p>
				<label>Ngày sinh</label>
				<input type="date" name="dob" value="<?php echo $profile['dob'] ?>">
			</p>
			<p>
				<label>Số điện thoại</label>
				<input type="text" name="phone" value="<?php echo $profile['phone'] ?>">
			</p>
			<!-- <p>
				<label>Ảnh đại diện</label>
				<input type="image" name="avatar" value="">
			</p> -->
			<p>
				<label>Công việc</label>
				<input type="text" name="job" value="<?php echo $profile['job'] ?>" placeholder="">
			</p>
			<p>
				<label>Quan tâm</label>
				<input type="text" name="interestedin" value="<?php echo $profile['interestedin'] ?>">
			</p>
			<p>
				<input type="submit" class="btn-submit" name="update" value="Update">
			</p>
		</form>
						
	</div>
</section>

<!-- ---------------------------------------------------------- -->

<?php
/** Load Footer
*/
$this->load->view('footer') ;
?>